<template>
    <div class="top">
        <van-nav-bar
            title="Swing官方旗舰店"
            right-text="分享"
            right-arrow
            @click-left="onClickLeft"
        />
       <van-nav-bar
            title=" "
            left-text="分类"
            right-text="搜寻"
            left-arrow
            @click-left="onClickLeft"
        />
    </div>
</template>

<script>
    import {NavBar, Toast} from 'vant';

    export default {
        name: "top",
        components:{

            'van-nav-bar':NavBar,
        },
        methods:{
            onClickLeft(){
                Toast('返回');
                this.$router.push({ path:'/home'});
            },
        }
    }
</script>

<style lang="less">

</style>